<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>个人信息</title>
    <link rel="icon" type="image/x-icon" href="/img/favicon.jpg"/>
</head>
<!-- jquery-->
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
<link rel="stylesheet" href="/css/pure/pure-min.css">
<link rel="stylesheet" href="/css/index.css">
<style>

    .lesson_box{
        width: 80%;height: 70%;
        background-color: white;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        margin: 1px auto;
    }

</style>
<body>

<!--导航栏-->
<div th:replace="common :: navbar"></div>
<!--中部统计数据-->
<div th:replace="common :: boxbar"></div>

<section class="lesson_box">
    <div style="text-align: left">
       <p th:text=" '姓名：'+ ${user.name}"></p>
        <p th:if="${user.role == 1 || user.role == 2}" th:text="'手机号：' + ${user.phone}"></p>
        <p th:if="${user.role == 3 }" th:text="'学号：' + ${user.number}"></p>
        <p th:text="'密码 ：'+ ${user.passWord}"></p>
        <p th:if="${user.role == 1}">角色：管理员</p>
        <p th:if="${user.role == 2}">角色：教师</p>
        <p th:if="${user.role == 3}">角色：学生</p>
        <p th:text="'创建时间：'+${#dates.format(user.createTime,'yyyy-MM-dd HH:mm:ss')}" ></p>
    </div>
</section>
</body>
</html>